package com.example.shop.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shop.pojo.Logs;

@Mapper
public interface LogsMapper extends BaseMapper<Logs> {
    /**
     * 记录日志
     * @param logs
     * @return
     */
    int addLogs(Logs logs);

    /**
     * 操作日志
     * @param logs
     * @return
     */
    int updateLogs(Logs logs);

    /**
     * 查询日志
     */
    List<Logs> selectLogs(Logs logs);

    /**
     * 删除日志
     */
    int removeLogs(Integer id);

}

